/**
 * FileName: AddressService
 * Author:   sky
 * Date:     2020/1/3 16:13
 * Description:
 */
package com.run.guifeng.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.run.guifeng.model.entity.Address;
import com.run.guifeng.model.entity.GoodsInfo;

import java.util.List;

/**
 *
 *
 * @author JingShi
 * @create 2020/1/3
 * @since 1.0.0
 */
public interface AddressService {

    /**
     * 用户保存自己的地址
     *
     * @param address
     * @return
     */
    String saveAddress(Address address);

    /**
     *用户删除地址
     *
     * @param id
     * @return
     */
    String deleteAddress(Integer id);

    /**
     * 用户更新地址
     *
     * @param address
     * @return
     */
    String updateAddress(Address address);

    /**
     *用户获取地址
     *
     * @param userId
     * @return
     */
    List<Address> getAddressPage(Integer userId);

    Address getAddressByUserid(Integer userid);
}